
<jsp:include page="menu.jsp" ></jsp:include>
		
 <div id="page-wrapper">
	 <div class="ibody">			 
			<div class="jumbotron">
					<h1>Registro de residente</h1>
			</div>
			
			<div class="formGeneral">
			<form method="post" name ="fResidenteNew" id ="fResidenteNew" action="ResidenteInsertaServlet" class="form-horizontal">
				<div class="form-group">
			<label for="lbidresidente" class="col-sm-2 control-label">Id Residente:</label>
			<div class="col-sm-2">
				<input type="text" class="form-control" id="txidresidente" name="txidresidente" placeholder="" readonly>
			</div>
		</div>
		<div class="form-group">
			<label for="lbappaterno" class="col-sm-2 control-label">Ap. Paterno:</label>
			<div class="col-sm-3">
				<input type="text" class="form-control" id="txappaterno" name="txappaterno" placeholder="Ap. Paterno" maxlength="45" required>
			</div>
		</div>
		<div class="form-group">
			<label for="lbapmaterno" class="col-sm-2 control-label">Ap. Materno:</label>
			<div class="col-sm-3">
				<input type="text" class="form-control" id="txapmaterno" name="txapmaterno" placeholder="Ap. Materno" maxlength="45" required>
			</div>
		</div>
		<div class="form-group">
			<label for="lbnombres" class="col-sm-2 control-label">Nombres:</label>
			<div class="col-sm-3">
				<input type="text" class="form-control" id="txnombres" name="txnombres" placeholder="Nombres" maxlength="45" required>
			</div>
		</div>
		<div class="form-group">
			<label for="lbdocumento" class="col-sm-2 control-label"># Documento:</label>
			<div class="col-sm-3">
				<input type="text" class="form-control" id="txdocumento" name="txdocumento" onKeyPress="return soloNumeros(event)" placeholder="# Documento" maxlength="8" required >
			</div>
		</div>
		<div class="form-group">
			<label for="lbfecnac" class="col-sm-2 control-label">Fecha nacimiento:</label>
			<div class="col-sm-2">
				<input type="date" class="form-control" id="txfecnac" name="txfecnac">
			</div>
		</div>
		<div class="form-group">
			<label for="lbemail" class="col-sm-2 control-label">E-mail:</label>
			<div class="col-sm-3">
				<input type="email" class="form-control" id="txemail" name="txemail" placeholder="E-mail" maxlength="50" required >
			</div>
		</div>
		<div class="form-group">
			<label for="lbemail" class="col-sm-2 control-label">Clave de acceso:</label>
			<div class="col-sm-3">
				<input type="password" class="form-control" id="txclave" name="txclave" placeholder="Clave personal" maxlength="45" required >
			</div>
		</div>
		<div class="form-group">
			<label for="lbestado" class="col-sm-2 control-label">Estado</label>
			<div class="col-sm-3">
				<input type="text" class="form-control" id="txestado" name="txestado" readonly placeholder="" value="ACTIVO">
			</div>
		</div>
		<div class="form-group">
			<div class="col-sm-offset-2 col-sm-10">
				<button class="btn btn-primary" type="submit">Aceptar</button>
				<a class="btn btn-default" href="ResidenteLista.jsp" role="button">Cancelar</a>
			</div>
		</div>

				</form>
	  		</div>	
		</div>			
	</div>			
 
<script type="text/javascript">
  
		var date = new Date();
		var day = date.getDate();
		var month = date.getMonth() + 1;
		var year = date.getFullYear() - 18;
		if (month < 10) month = "0" + month;
		if (day < 10) day = "0" + day;
		var today = year + "-" + month + "-" + day;
		
		document.getElementById('txfecnac').value = today;
		
</script>
	
</body>
</html>    